import request from 'umi-request';
import type { CardListItem } from './data'

interface ParamsType extends Partial<CardListItem> {
  id: string
}

export async function queryCardList(params: ParamsType) {
  return request('/api/card-list')
}